package Controllers;

import javax.swing.JPanel;

import Boundry.GenericTools.IPanelOperation;
import Entity.Request;
import Entity.User;
import Entity.Worker;
import ICM_OCSF.Client;
/**
 * 
 * @author G16
 *
 */
public final class GlobalData 
{
	/*public GlobalData()
	{
		ICMManager=null;
		user=null;
		request=null;
		guiMangaer = new GuiManager();
		//usersManager =new UsersManager();
	}*/
	
	public static Worker ICMManager;
	public static Worker worker;
	public static User user;
	public static Request request;
	public static GuiManager guiMangaer;
	
	public static JPanel mainScreen;
	
	public static Client client;
	
	
	public static final int FrameHeight=504;
	public static final int FrameWidth=896;
	public static final int SlaveHeight=50;
	public static final int PanelHeight=FrameHeight-SlaveHeight-25;
	public static final int PanelWidth=FrameWidth;
	public static final int MAX_MESSAGE_QUEUE = 10;
	private static int message_id = 0;
	
	private static Object key = new Object();
	/**
	 * 
	 * @return incremnted messageid
	 */
	public static int MESSAGE_ID()
	{
		synchronized (key) 
		{
			message_id++;
			return message_id;
		}
	}
	
	
	
	
}
